#ifndef __ZOMBIE_H__
#define __ZOMBIE_H__

#include "GameGlobal.h"
#include "RectLayout.h"

class Zombie :public CCSprite
{
private:
	TZombieLiveState		m_liveState;			
	CCPoint					m_startPoint;
	CCPoint					m_endPoint;
	unsigned int			m_key;

public:
	Zombie(unsigned int key,CCPoint startPoint,CCPoint endPoint):
			m_liveState(kNormalZombie),
			m_key(key),
			m_startPoint(startPoint),
			m_endPoint(endPoint){}

	  static Zombie*		create(unsigned int	key,CCPoint startPoint,CCPoint endPoint);

	  CCRect				Rect();
	  void					StartMove();
	  void					ReStartMove();
	  CCPoint				GetLocation();
	  unsigned int			Key(){ return m_key;}

	  void					SetInValid();

	  bool					IsLive(){ return m_liveState == kNormalZombie; }
};

#endif